Excerpts from:
A Crash Course in Python for Scientists
Rick Muller, Sandia National Laboratories
http://nbviewer.ipython.org/gist/rpmuller/5920182
[Run throught the tutorial]
In [6]:
2+3
Out[6]:
In [2]:
import math
math.sqrt(1)
Out[2]:
In [4]:
a = dict({'key': 1, 'luca': 'ciao'})
In [5]:
a['luca']
Out[5]:
In [11]:
'b' in ['a','a','v']
Out[11]:
In [12]:
('a','b')
Out[12]:
In [ ]:
In [ ]: